Account: xyz-tom.sawyer from 9320:
Create Account with New Person for Preexisting User Subject| name | value |
|---|---|
| subjectName | xyz-tom.sawyer |
| name | value |
|---|---|
| personFamilyName | Sawyer |
| personGivenName | Tom |
HTTP GET "/api/hs/accounts/accounts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-tom.sawyer>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "242a0004-0000-0000-0000-000000000004", // Account: xyz-tom.sawyer
"person" : {
"uuid" : "0e81bae3-da1c-4ec4-b1da-3c1928d1f718", // Person: Tom Sawyer
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : "Hallo",
"title" : null,
"givenName" : "Tom",
"familyName" : "Sawyer"
},
"subject" : {
"uuid" : "242a0004-0000-0000-0000-000000000004", // Account: xyz-tom.sawyer
"name" : "xyz-tom.sawyer",
"type" : "USER"
},
"globalUid" : 21016,
"globalGid" : 21016
} ]
Fetch the account for the current subject to resolve the related person.
HTTP GET "/api/hs/office/persons/0e81bae3-da1c-4ec4-b1da-3c1928d1f718" // personUuid \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-tom.sawyer>"` \
`# }`
=> status: 200 OK
{
"uuid" : "0e81bae3-da1c-4ec4-b1da-3c1928d1f718", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : "Hallo",
"title" : null,
"givenName" : "Tom",
"familyName" : "Sawyer"
}
generated on 2026-07-17 01:42:20 for branch